// file:api.js
// 1、导入axios以及拦截器
import service from './request'

// 2、定义登录函数接口
export const orderList = () => {
    return service({
        url: '/order/order/getOrderList',
        method: 'post',
    })
};
export const getSiteListByPersonNumber = (data) => {
    return service({
        url: '/order/order/getSiteListByPersonNumber/'+data,
        method: 'post',
    })
};
export const getOrderById = (data) => {
    return service({
        url: '/order/order/getOrderById/'+data,
        method: 'post',
    })
};
export const insertOrder = (data) => {
    return service({
        url: '/order/order/insertOrder',
        method: 'post',
        data
    })
};